<template>
	<view>
		<view class="banner">
			<image src="https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221126/987a839f144d4f13b1ff0022b66caee7.jpg" mode="widthFix" class="b-cover"></image>
		</view>
		<view class="forms">
			<view class="f-title">你真的知道你的网站为什么没有排名吗？</view>
			<view class="f-subtitle">网站没排名，一切等于零</view>
			<view class="f-desc">纺扬网站建设免费网站优化诊断</view>
			<view class="f-box">
				<input type="text" placeholder="请输入您的姓名" v-model="formsData.fullName" class="fb-input" />
				<input type="text" maxlength="11" placeholder="请输入您的电话" v-model="formsData.phone" class="fb-input" />
				<button class="fb-btn" @click="formsSave" :disabled="formsDisabled">免费网站诊断</button>
			</view>
		</view>
		<view class="hr"></view>
		<view class="diagnosis">
			<view class="d-title">企业网站诊断/关键词排名优化</view>
			<view class="d-cover">
				<image src="https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/5ca9a272d7b64cba9122b3538d13c5bc.jpg" mode="widthFix" class="image"></image>
			</view>
			<view class="d-content">
				<view class="dc-list">
					<text class="dcl-icon icon1"></text>
					<view class="dcl-item">
						<view class="dcli-title">诊断</view>
						<view class="dcli-desc">对网站进行全方位分析</view>
					</view>
				</view>
				<view class="dc-list">
					<text class="dcl-icon icon2"></text>
					<view class="dcl-item">
						<view class="dcli-title">反馈</view>
						<view class="dcli-desc">对网站诊断结果的反馈，包括网站框架以及用户 对网站的一个喜厌度</view>
					</view>
				</view>
				<view class="dc-list">
					<text class="dcl-icon icon3"></text>
					<view class="dcl-item">
						<view class="dcli-title">优化</view>
						<view class="dcli-desc">参照诊断的结果，对网站整体进行相对应的优化从而提升网站的权重及关键词排名</view>
					</view>
				</view>
			</view>
		</view>
		<view class="hr"></view>
		<view class="reason">
			<view class="r-title">这就是客户选择我们的原因</view>
			<view class="r-box">
				<view class="rb-item">
					<view class="rbi-desc">网站做了两年多优化，一直没有排名，后来经过xxx科技 诊断优化后，网站排名大幅度提升，老板的心情也逐渐好了起来,换句话说，<text class="yellow">纺扬网站建设把数据真正的做到了极致</text></view>
					<view class="rbi-author">
						<text class="rbia-name">某公司市场总监</text>
					</view>
				</view>
				<image src="https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/5e78bd738e554f28868be7c1510588b0.jpg" mode="aspectFill" class="rb-cover"></image>
			</view>
		</view>
		<view class="hr"></view>
		<view class="seo">
			<view class="s-title">企业为什么一定要做SEO</view>
			<view class="s-box">
				<view v-for="item,index in seoData" :key="index" class="sb-list">
					<view class="sbl-cover">
						<image :src="item.icon" class="sblc-icon"></image>
						<text class="sblc-text">{{item.title}}</text>
					</view>
					<view class="sbl-item">{{item.desc}}</view>
				</view>
			</view>
		</view>
		<view class="hr"></view>
		<view class="additional">
			<view class="a-title">选择纺扬网站建设3个额外的理由</view>
			<view class="a-list">
				<image src="https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/968240e5d7384931b5dc01a0bdf84a81.jpg" class="al-icon"></image>
				<view class="al-text">上词快、网站整体提升明显</view>
			</view>
			<view class="a-list end">
				<image src="https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/fdfd8387d0c74103a0c99ac02fb7de68.jpg" class="al-icon"></image>
				<view class="al-text">售后服务好，7X24小时 随呼随到</view>
			</view>
			<view class="a-list">
				<image src="https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/5b545bc92cf4444f97e4efc802a66d9d.jpg" class="al-icon"></image>
				<view class="al-text">物超所值，价格远低于同行</view>
			</view>
		</view>
		<Footers></Footers>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formsData: {
					fullName: '',
					phone: '',
					pathUrl: '',
					platform: '百度小程序'
				},
				formsDisabled: false,
				seoData: [{
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/282988054d384e0e8032c500b8f13be5.png',
					title: '网站引流',
					desc: '能带来大量精准流量的网站才是好网站，SEO优化可以为企业网站带来大量的有效流量。'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/98140a4094604835b1c37a0534d2ea93.png',
					title: '同行\n都在做',
					desc: '企业线上免费推广的最重要的途径,没有之一，与竞价完美配合。'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/4998b282c5184d1fa55138b20c4b503d.png',
					title: '更低的\n成本',
					desc: '大量订单被同行抢走，因为用户网络搜索到的永远只有同行'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/e2ab961d38384fb3940fe0f4e3c253b1.png',
					title: '24小时\n广告在线',
					desc: 'SEO排名24小时在线，任何时间都能让客户看到你'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/4ad9a9d74a3047c3b5ad6967c50268e2.png',
					title: '低投入\n高收益',
					desc: '一次投入，享受长久的推广红利,维护好排名、持续产单'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/e9f577c7458c416280a07a9b3db7d24e.png',
					title: '提升品牌\n影响力',
					desc: '百度、360、搜狗、谷歌排名同步提升，实现全网首页霸屏'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/01b58b16247e455b804771a9723b0220.png',
					title: '比竞价广\n告更实惠',
					desc: '支出占比不足竞价广告的1%'
				}, {
					icon: 'https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221105/d20a331b9b484fcc850075eb7a55ac0b.png',
					title: '精准营销',
					desc: 'SEO属于搜索引擎营销，获取的流量更精准，能够给企业带来持续不断的优质营销订单'
				}]
			}
		},
		onLoad() {
			let pages = getCurrentPages()
			let pathUrl = pages[pages.length-1]['$page']['fullPath']
			this.formsData.pathUrl = pathUrl
		},
		onShow() {
			// 设置TDK
			if (uni.getSystemInfoSync().uniPlatform == 'mp-baidu') {
				swan.setPageInfo({
					title: 'SEO优化-专业网站优化推广公司-纺扬网站建设',
					description: '纺扬网站建设是一家专业搜索引擎排名优化公司,专注网站SEO/SEM优化,口碑SEO优化网络整合营销推广,关键词排名优化提升,推广引流,新站优化,整站优化。',
					keywords: 'seo优化,网站优化,网站推广,网站优化公司,纺扬网站建设'
				})
			}
		},
		methods: {
			// 免费网站诊断
			async formsSave() {
				if (this.formsData.phone == '') {
					this.u.msg('请输入您的电话')
					return false
				}
				if (!/1[3456789]\d{9}/.test(this.formsData.phone)) {
					this.u.msg('电话格式有误')
					return false
				}
				this.formsDisabled = true
				let getres = await this.u.http({
					url: this.u.addMessageBoard,
					data: this.formsData
				})
				if (getres.code == 200) {
					this.u.modal('', getres.msg)
					this.formsData = {
						fullName: '',
						phone: '',
						pathUrl: ''
					}
					this.formsDisabled = false
					return false
				}
				this.u.msg(getres.msg)
				this.formsDisabled = false
				return false
			}
		}
	}
</script>

<style lang="less" scoped>
	@import url("@/static/css/color.less");

	.forms {
		padding-top: 59rpx;
		
		.f-title {
			font-size: 36rpx;
			text-align: center;
			font-weight: bold;
		}
		
		.f-subtitle {
			margin-top: 20rpx;
			font-size: 30rpx;
			text-align: center;
		}
		
		.f-desc {
			text-align: center;
			margin-top: 29rpx;
			font-size: 30rpx;
			font-weight: bold;
			color: @color-blue;
		}
		
		.f-box {
			padding: 61rpx 24rpx 40rpx;
			
			.fb-input {
				margin-bottom: 20rpx;
				border: 1rpx solid #f2f2f2;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
				font-size: 28rpx;
			}
			
			.fb-btn {
				height: 100rpx;
				line-height: 100rpx;
				background: @color-light-dark-blue;
				color: #fff;
				border-radius: 0;
				font-size: 36rpx;
				margin-top: 40rpx;
				
				&::after {
					content: unset;
				}
			}
		}
	}

	.diagnosis {
		padding-top: 40rpx;
		
		.d-title {
			text-align: center;
			font-size: 36rpx;
			font-weight: bold;
		}
		
		.d-cover {
			padding: 40rpx 24rpx 0;
			
			.image {
				width: 100%;
				display: block;
			}
		}
		
		.d-content {
			padding: 30rpx 24rpx 20rpx;
			
			.dc-list {
				display: flex;
				align-items: flex-start;
				margin-bottom: 20rpx;
				
				.dcl-icon {
					width: 65rpx;
					height: 50rpx;
					
					&.icon1 {
						background: url(https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/f2d6b931aa344d6ba78e92b1ced7f8a2.png) center left / 42rpx no-repeat;
					}
					
					&.icon2 {
						background: url(https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/acd8b095b6ff4286bc3cc45e8121a508.png) center left / 48rpx no-repeat;
					}
					
					&.icon3 {
						background: url(https://ys-cc.oss-cn-chengdu.aliyuncs.com/upload/20221205/8678b6c0af5c432d9c00ab856121bc53.png) center left / 50rpx no-repeat;
					}
				}
				
				.dcl-item {
					flex: 1;
					overflow: hidden;
					
					.dcli-title {
						font-size: 30rpx;
						font-weight: bold;
					}
					
					.dcli-desc {
						margin-top: 10rpx;
						font-size: 26rpx;
						color: #999;
						line-height: 36rpx;
					}
				}
			}
		}
	}

	.reason {
		padding-top: 40rpx;
		
		.r-title {
			text-align: center;
			font-size: 36rpx;
			font-weight: bold;
		}
		
		.r-box {
			margin: 40rpx 24rpx;
			padding: 0 30rpx;
			background-color: #fff;
			box-shadow: 0 0 32rpx 0 rgba(0,0,0,0.1);
			display: flex;
			align-items: center;
			height: 375rpx;
			
			.rb-item {
				flex: 1;
				margin-right: 38rpx;
				overflow: hidden;
				
				.rbi-desc {
					display: block;
					font-size: 24rpx;
					color: #666;
					
					.yellow {
						color: @color-yellow;
					}
				}
				
				.rbi-author {
					margin-top: 38rpx;
					width: 355rpx;
					position: relative;
					overflow: hidden;
					
					&::before {
						content: '';
						height: 1rpx;
						background-color: #ccc;
						position: absolute;
						top: 50%;
						right: 0;
						left: 0;
					}
					
					.rbia-name {
						position: relative;
						float: right;
						font-size: 24rpx;
						background-color: #fff;
						padding-left: 20rpx;
					}
				}
			}
			
			.rb-cover {
				width: 200rpx;
				height: 200rpx;
				border-radius: 50%;
				display: block;
				overflow: hidden;
			}
		}
	}

	.seo {
		padding-top: 40rpx;
		
		.s-title {
			font-size: 36rpx;
			text-align: center;
			font-weight: bold;
		}
		
		.s-box {
			margin: 40rpx 24rpx;
			padding: 60rpx 30rpx;
			background-color: #fff;
			box-shadow: 0 0 32rpx 0 rgba(0,0,0,0.1);
			
			.sb-list {
				display: flex;
				align-items: flex-start;
				margin-bottom: 30rpx;
				
				.sbl-cover {
					width: 95rpx;
					margin-right: 23rpx;
				
					.sblc-icon {
						width: 80rpx;
						height: 80rpx;
						border-radius: 50%;
						overflow: hidden;
						margin: 0 auto;
						display: block;
					}
					
					.sblc-text {
						margin-top: 19rpx;
						text-align: center;
						display: block;
						font-weight: bold;
						font-size: 24rpx;
					}
				}
				
				.sbl-item {
					flex: 1;
					overflow: hidden;
					padding-top: 11rpx;
					color: #999;
					font-size: 24rpx;
				}
				
				&:last-child {
					margin-bottom: 0;
				}
			}
		}
	}

	.additional {
		padding-top: 40rpx;
		
		.a-title {
			text-align: center;
			font-size: 36rpx;
			font-weight: bold;
			margin-bottom: 59rpx;
		}
		
		.a-list {
			margin: 0 24rpx 30rpx;
			background-color: #fff;
			box-shadow: 0 0 15rpx 0 rgba(0,0,0,0.1);
			display: flex;
			align-items: center;
			padding: 25rpx;
			
			.al-icon {
				width: 100rpx;
				height: 100rpx;
				border-radius: 50%;
				overflow: hidden;
				margin-right: 20rpx;
			}
			
			.al-text {
				font-size: 30rpx;
				font-weight: bold;
			}
			
			&.end {
				flex-direction: row-reverse;
				
				.al-icon {
					margin-right: 0;
					margin-left: 20rpx;
				}
			}
		}
	}
</style>
